package com.thinkgem.jeesite.modules.fantasy.common.constant;

/**
 * @author wanghui
 * @version V1.0
 * @title: Constants.java
 * @package: com.example.websocket1.common
 * @description: 静态常量类
 * @date 2018/7/11 13:29
 */
public class Constants {

    public static final String REDIS_DATA = "redis_data";
    public static final String REDIS_USERNAMES = "redis_usernames";
    public static final String REDIS_CITY_1 = "redis_city_1";
    public static final String REDIS_CITY_2 = "redis_city_2";

    public static final String REDIS_CITY_ = "redis_city_";
    public static final String REDIS_CITYMAP_ = "redis_citymap_";
    public static final String REDIS_USER_ = "redis_user_";

    //限制用户发送消息的频率，该常量加上用户名后标记该用户还有多长时间能再次发送消息，到时间后自动清除此值
    public static final String REDIS_TALKS = "redis_talks_";
    public static final Integer TALKS_WORLD_TIME = 60*1000;
    public static final Integer TALKS_CITY_TIME = 5*1000;
    public static final Integer TALKS_TRADE_TIME = 5*1000;
    public static final Integer TALKS_WHISPER_TIME = 5*1000;
    public static final Integer TALKS_LENGTH = 200;

}
